package cn.cjj.gulimall.order.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author CuiJunJie
 * @create 2021/7/1-10:49
 */
@ConfigurationProperties(prefix = "gulimall.thread")
@Component
@Data
public class ThreadPoolConfigProperties {
    /**
     * public ThreadPoolExecutor(int corePoolSize,
     *                           int maximumPoolSize,
     *                           long keepAliveTime,
     *                           TimeUnit unit,
     *                           BlockingQueue<Runnable> workQueue,
     *                           ThreadFactory threadFactory,
     *                           RejectedExecutionHandler handler)
     */
    private Integer corePoolSize;
    private Integer maximumPoolSize;
    private Long keepAliveTime;
}
